<?php $order = pc_variable("commerce.order"); 
if($order !== null && $order->get("orderItems")->size() > 0) {?>
<div class="panel">
    <h3><?php pc_echo(pc_message("order.title")); ?></h3>
    <ul><?php foreach($order->get("orderItems") as $index => $orderItem) { ?>
        <li><?php pc_echo($orderItem->get("quantity"))?> &#215; <?php pc_echo($orderItem->get("article")->get("name"))?></li>
    <?php } ?></ul>
    <p><strong><?php pc_echo(pc_message("order.total")); ?></strong>: <?php pc_echo($order->getCurrency()->getSymbol() . " " . pc_format_number($order->getTotalAmount(), "0.00")); ?></p>
    <p>
        <a href="/dispatcher.php?controller=Commerce/Authenticated/CheckOut&amp;targetPage.location=<?php pc_echo(pc_encode_url(pc_variable("currentPage.location")))?>" class="checkout"><?php pc_echo(pc_message("order.checkout")); ?></a><br/>
        <a href="/dispatcher.php?controller=Commerce/ShowOrder&amp;targetPage.location=<?php pc_echo(pc_encode_url(pc_variable("currentPage.location")))?>" class="edit-order"><?php pc_echo(pc_message("order.edit")); ?></a>
    </p>
</div>
<?php } ?>